home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpconvert" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpconvert</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpconvert</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-convert-rgb">gimp_convert_rgb</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-convert-grayscale">gimp_convert_grayscale</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-convert-indexed">gimp_convert_indexed</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpConvertDitherType">GimpConvertDitherType</link> dither_type,
- <link linkend="GimpConvertPaletteType">GimpConvertPaletteType</link> palette_type,
- <link linkend="gint">gint</link> num_cols,
- <link linkend="gboolean">gboolean</link> alpha_dither,
- <link linkend="gboolean">gboolean</link> remove_unused,
- <link linkend="gchar">gchar</link> *palette);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-convert-rgb">gimp_convert_rgb ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_convert_rgb (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Convert specified image to RGB color
- </para>
- <para>
- This procedure converts the specified image to RGB color. This
- process requires an image of type GRAY or INDEXED. No image content
- is lost in this process aside from the colormap for an indexed
- image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-convert-grayscale">gimp_convert_grayscale ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_convert_grayscale (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Convert specified image to grayscale (256 intensity levels)
- </para>
- <para>
- This procedure converts the specified image to grayscale with 8 bits
- per pixel (256 intensity levels). This process requires an image of
- type RGB or INDEXED.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-convert-indexed">gimp_convert_indexed ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_convert_indexed (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpConvertDitherType">GimpConvertDitherType</link> dither_type,
- <link linkend="GimpConvertPaletteType">GimpConvertPaletteType</link> palette_type,
- <link linkend="gint">gint</link> num_cols,
- <link linkend="gboolean">gboolean</link> alpha_dither,
- <link linkend="gboolean">gboolean</link> remove_unused,
- <link linkend="gchar">gchar</link> *palette);</programlisting>
- <para>
- Convert specified image to and Indexed image
- </para>
- <para>
- This procedure converts the specified image to 'indexed' color. This
- process requires an image of type GRAY or RGB. The 'palette_type'
- specifies what kind of palette to use, A type of '0' means to use an
- optimal palette of 'num_cols' generated from the colors in the
- image. A type of '1' means to re-use the previous palette (not
- currently implemented). A type of '2' means to use the so-called
- WWW-optimized palette. Type '3' means to use only black and white
- colors. A type of '4' means to use a palette from the gimp palettes
- directories. The 'dither type' specifies what kind of dithering to
- use. '0' means no dithering, '1' means standard Floyd-Steinberg
- error diffusion, '2' means Floyd-Steinberg error diffusion with
- reduced bleeding, '3' means dithering based on pixel location
- ('Fixed' dithering).</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>dither_type</parameter> :</entry>
- <entry> dither type (0=none, 1=fs, 2=fs/low-bleed 3=fixed).
- </entry></row>
- <row><entry align="right"><parameter>palette_type</parameter> :</entry>
- <entry> The type of palette to use.
- </entry></row>
- <row><entry align="right"><parameter>num_cols</parameter> :</entry>
- <entry> the number of colors to quantize to, ignored unless (palette_type == MAKE_PALETTE).
- </entry></row>
- <row><entry align="right"><parameter>alpha_dither</parameter> :</entry>
- <entry> dither transparency to fake partial opacity.
- </entry></row>
- <row><entry align="right"><parameter>remove_unused</parameter> :</entry>
- <entry> remove unused or duplicate colour entries from final palette, ignored if (palette_type == MAKE_PALETTE).
- </entry></row>
- <row><entry align="right"><parameter>palette</parameter> :</entry>
- <entry> The name of the custom palette to use, ignored unless (palette_type == CUSTOM_PALETTE).
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-